home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000015_anthonypieper@cs.com_Tue Nov 25 09:55:05 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
  2. From: anthonypieper@cs.com (newexpectuser)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: How do I get kermit to return a code to a calling Linux Script ?
  5. Date: 25 Nov 2003 06:18:30 -0800
  6. Organization: http://groups.google.com
  7. Lines: 22
  8. Message-ID: <f0bb0f39.0311250618.1bb06acf@posting.google.com>
  9. NNTP-Posting-Host: 209.251.39.194
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1069769910 20847 127.0.0.1 (25 Nov 2003 14:18:30 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Tue, 25 Nov 2003 14:18:30 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14691
  16.  
  17. I have the following line that I purposely triggered to try to
  18. simulate a timeout condition in my script:
  19. .
  20. .
  21. .
  22. :1, echo PASSWORD PROMPT OK
  23.     lineout xxxxxxxxx
  24.     input 10 "#"
  25.     if fail break stop 1 output \quit\13
  26. .
  27. .
  28. .
  29. }
  30. echo "Outside loop"
  31. bye
  32. exit
  33.  
  34. I have a Linux script calling this Kermit script, but it doesn't seem
  35. to recognize the return code of a 1 from the stop command ?...I had to
  36. use the 'output \quit\13' because the stop was leaving me at the
  37. "C-Kermit>" prompt, I guess this is the correct syntax, because it put
  38. me back into my calling script.
  39.